Fingerprint 5 Click
Fingerprint 5 Click demo application is developed using the NECTO Studio, ensuring compatibility with mikroSDK's open-source libraries and tools. Designed for plug-and-play implementation and testing, the demo is fully compatible with all development, starter, and mikromedia boards featuring a mikroBUS™ socket.
Click Library
- Author : Stefan Filipovic
- Date : Jul 2025.
- Type : UART type
Software Support
Example Description
This example demonstrates how to use the Fingerprint 5 Click board to enroll and identify fingerprints. The application cycles through several states: checking firmware readiness, reading version info, deleting existing templates, enrolling new fingerprints, and continuously identifying them.
Example Libraries
- MikroSDK.Board
- MikroSDK.Log
- Click.Fingerprint5
Example Key Functions
- fingerprint5_cfg_setup This function initializes Click configuration structure to initial values.
void fingerprint5_cfg_setup(fingerprint5_cfg_t *cfg)
Fingerprint 5 configuration object setup function.
Fingerprint 5 Click configuration object.
Definition fingerprint5.h:397
- fingerprint5_init This function initializes all necessary pins and peripherals used for this Click board.
err_t fingerprint5_init(fingerprint5_t *ctx, fingerprint5_cfg_t *cfg)
Fingerprint 5 initialization function.
Fingerprint 5 Click context object.
Definition fingerprint5.h:369
- fingerprint5_enroll_finger This function sends the enroll command for fingerprint registration.
err_t fingerprint5_enroll_finger(fingerprint5_t *ctx)
Fingerprint 5 enroll finger function.
- fingerprint5_identify_finger This function sends the identify command to compare the input fingerprint with existing templates.
err_t fingerprint5_identify_finger(fingerprint5_t *ctx)
Fingerprint 5 identify finger function.
- fingerprint5_read_cmd This function reads a response or event frame from the device.
err_t fingerprint5_read_cmd(fingerprint5_t *ctx)
Fingerprint 5 read command function.
Application Init
Initializes the logger and the Click board, resets the device and sets up the application state machine.
{
log_cfg_t log_cfg;
LOG_MAP_USB_UART( log_cfg );
log_init( &logger, &log_cfg );
log_info( &logger, " Application Init " );
{
log_error( &logger, " Communication init." );
for ( ; ; );
}
log_info( &logger, " Application Task " );
log_printf ( &logger, "\r\nAPP STATE: WAIT READY\r\n" );
}
#define FINGERPRINT5_MAP_MIKROBUS(cfg, mikrobus)
MikroBUS pin mapping.
Definition fingerprint5.h:249
void fingerprint5_reset_device(fingerprint5_t *ctx)
Fingerprint 5 hardware reset function.
void application_init(void)
Definition main.c:82
@ FINGERPRINT5_APP_STATE_WAIT_READY
Definition main.c:41
Application Task
Handles command processing and application state transitions, enabling fingerprint enrollment and identification.
{
{
fingerprint5_parse_cmd ( &fingerprint5 );
fingerprint5_process ( &fingerprint5 );
}
}
@ FINGERPRINT5_OK
Definition fingerprint5.h:431
void application_task(void)
Definition main.c:117
Note
Make sure to place your finger on the sensor when prompted during enrollment and identification. The example registers 2 fingerprints by default.
Application Output
This Click board can be interfaced and monitored in two ways:
- Application Output - Use the "Application Output" window in Debug mode for real-time data monitoring. Set it up properly by following this tutorial.
- UART Terminal - Monitor data via the UART Terminal using a USB to UART converter. For detailed instructions, check out this tutorial.
Additional Notes and Information
The complete application code and a ready-to-use project are available through the NECTO Studio Package Manager for direct installation in the NECTO Studio. The application code can also be found on the MIKROE GitHub account.